package com.song.javathread_day01.ch1_8;

import java.util.ArrayDeque;
import java.util.Deque;

import org.apache.log4j.Logger;

public class ch1_8 {
	
	public static Logger logger =null;
	
	public static void main(String[] args) {
		logger = Logger.getLogger("log");
		Deque<Event> deque  = new ArrayDeque<Event>();
		WriterTask writer = new WriterTask(deque);
		for(int i=0;i<3;i++)
		{
			Thread thread = new Thread(writer);
			thread.start();
		}
		
		CleanerTask cleaner = new CleanerTask(deque);
		cleaner.start();
		
	}
	
}	
